<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <!-- build:css -->
    <link rel="stylesheet" href="/static/lib/kitadmin/css/layui.css" th:href="@{/lib/kitadmin/css/layui.css}">
    <link rel="stylesheet" href="/static/lib/kitadmin/css/theme/default.css"
          th:href="@{/lib/kitadmin/css/theme/default.css}" id="theme">
    <link rel="stylesheet" href="/static/lib/kitadmin/css/nprogress.css" th:href="@{/lib/kitadmin/css/nprogress.css}">
    <!-- endbuild -->
    <style>
        .eleTree {
            width: 350px;
            height: 500px;
            border: 1px solid #ccc;
            overflow: hidden;
            display: inline-block;
            position: absolute;
        }
    </style>
</head>
<body>
<div class="gray-bg">
    <div class="layui-fluid">
        <div class="layui-row">
            <div class="layui-col-xs12">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <input type="hidden" id="dictType" th:value="${dict.dictType}" />
                        <table id="table_dict_data" lay-filter="table_dict_data">
                        </table>
                        <script type="text/html" id="col_operation">
                            <a shiro:hasPermission="system:dict_data:edit" class="layui-btn layui-btn-xs"
                               href="javascript:;" lay-event="edit"><i class="fa fa-edit"></i>编辑</a>
                            <a shiro:hasPermission="system:dict_data:remove" class="layui-btn layui-btn-xs"
                               href="javascript:;" lay-event="del"><i class="fa fa-remove"></i>删除</a>
                        </script>
                        <script type="text/html" id="table_dict_data_toolbar">
                            <div class="layui-btn-container" shiro:hasPermission="system:dict_data:add">
                                <button class="layui-btn layui-btn-sm" lay-event="toolbar-dict_data-add"
                                        shiro:hasPermission="system:dict_data:add">新增
                                </button>
                                <button class="layui-btn layui-btn-sm" lay-event="toolbar-dict_data-remove"
                                        shiro:hasPermission="system:dict_data:remove">批量删除
                                </button>
                            </div>
                        </script>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script src="../static/lib/kitadmin/polyfill.min.js" th:src="@{/lib/kitadmin/polyfill.min.js}"></script>
<script src="../static/lib/kitadmin/layui.js" th:src="@{/lib/kitadmin/layui.js}"></script>
<script src="../static/lib/kitadmin/kitadmin.js" th:src="@{/lib/kitadmin/kitadmin.js}"></script>

<script th:inline="javascript">
    var ctx = [[@{/}]];
    var editFlag = [[${@permission.hasPermi('system:dict:edit')}]];
    var removeFlag = [[${@permission.hasPermi('system:dict:remove')}]];
    var prefix = ctx + "system/dict/data";
</script>
<script>
    layui.config({
        base: ctx + 'js/admin/dict_data/'
    }).use(['dict_data'], function () {
        var dict_data = layui.dict_data;
        dict_data.init({
            "prefix": prefix,
            "editFlag": editFlag
        });
    });
</script>
</body>
</html>